import cn.edu.zut.DAO.StudentDao;
import cn.edu.zut.business.CountPoint;
import cn.edu.zut.model.Student;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.testng.AbstractTestNGSpringContextTests;
import org.testng.annotations.Test;

import java.util.List;

/**
 * @author 袁飞
 * @date 2019/4/9/00911:53
 */
@ContextConfiguration("classpath*:database-context.xml")
public class Mytest extends AbstractTestNGSpringContextTests {
    @Autowired
    StudentDao studentDao;
    @Autowired
    Student student;
    @Autowired
    CountPoint countPoint;
    @Test
    public void test(){
        student.setId("555");
        student.setName("zhangsan");
        student.setSex("女");
        student.setPoint(75);
        studentDao.insertStudent(student);
    }
    @Test
    public void test1(){
        countPoint.count();
        }

}
